package com.gnerv.battle.boot.framework.service.impl;

import com.gnerv.battle.boot.framework.repository.ManageAccountDataPermissionRepository;
import com.gnerv.battle.boot.framework.service.CurrentAccountService;
import com.gnerv.battle.boot.framework.service.ManageAccountDataPermissionService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @author Gnerv LiGen
 */
@Service
@AllArgsConstructor
public class ManageAccountDataPermissionServiceImpl implements ManageAccountDataPermissionService {

    private final ManageAccountDataPermissionRepository manageAccountDataPermissionRepository;

    @Override
    public Set<String> listByUsername(String username) {
        return manageAccountDataPermissionRepository.listByUsername(username);
    }
}
